package com.jt.service;

import feign.hystrix.FallbackFactory;

public class RemoteProviderFallbackFactory implements FallbackFactory<RemoteProviderService> {
    @Override
    public RemoteProviderService create(Throwable throwable) {
        return new RemoteProviderService() {
            @Override
            public String echoMessage(String msg) {
                //...给运维人员发短信...,
                return "服务维护中，稍等片刻再访问 ";
            }
        };
    }
}
